﻿<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SMIL-Click</title>
    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    </style>
    <script type="text/javascript" src="SMIL.js"></script>
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null && sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" style="height:100%">
	    
    <span style="display:none;">
        <span id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lCoordinate"></span>
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_TextField" title="Plats" class="ms-long" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lSCAStatus" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lSCAStatus" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lSMILSite" type="text" value="http://localhost" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lSMILSite" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lDocumentLibrary" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lDocumentLibrary" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lItemID" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lItemID" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lBingKey" type="text" value="AuQ2kqDNtkNtNd0FU1nPWQFPBo14nJiZ3VkaukVwnzB9DGy6lCrfSSX6cHAEjxHE" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lBingKey" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lThisList" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lThisList" />
        <input name="ctl00$m$g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b$ctl00$ctl04$ctl19$ctl00$ctl00$ctl04$ctl00$ctl00$lCoordinateFieldNameInForeignColumn" type="text" id="ctl00_m_g_4a0d864f_31fb_4dab_ae49_c940a40e2a8b_ctl00_ctl04_ctl19_ctl00_ctl00_ctl04_ctl00_ctl00_lCoordinateFieldNameInForeignColumn" />
    </span>
    <div id="Div1">
  <object data="data:application/x-silverlight,2" type="application/x-silverlight-2" width="500px" height="300px">
    <param name="source" value="ClientBin/SMIL.Client.Coordinate.xap"/>
    <param name="onerror" value="onSilverlightError" />
    <param name="background" value="azure" />
    <param name="minRuntimeVersion" value="2.0.31005.0" />
    <param name="autoUpgrade" value="true" />
    <param name="initParams" value="SMIL.BingMap.CredentialsKey=AuQ2kqDNtkNtNd0FU1nPWQFPBo14nJiZ3VkaukVwnzB9DGy6lCrfSSX6cHAEjxHE" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
    </a>
  </object>
</div>

 <%--<span style="visibility:visible">
        <span id="ctl00_m_g_554d7149_4d9f_4a96_a3f4_aa5936baef7b_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_lCoordinate"></span>--%>
        <%--<input type="text" name="ctl00$m$g_34776f78_2e4e_4c4f_a337_9168b38e52fb$ctl00$ctl04$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$lCoordinate" value="" id="ctl00_m_g_34776f78_2e4e_4c4f_a337_9168b38e52fb_ctl00_ctl04_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_lCoordinate"/>
     --%>
        <%--<input name="ctl00$m$g_554d7149_4d9f_4a96_a3f4_aa5936baef7b$ctl00$ctl04$ctl01$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" type="text" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?>&lt;StyledGeometrys>&lt;StyledGeometry>&lt;Style id=&quot;default&quot;>&lt;IconStyle>&lt;scale>1&lt;/scale>&lt;Icon>&lt;href>&lt;/href>&lt;/Icon>&lt;/IconStyle>&lt;LineStyle>&lt;color>FFFF0000&lt;/color>&lt;width>2&lt;/width>&lt;/LineStyle>&lt;PolyStyle>&lt;color>CCAAAAAA&lt;/color>&lt;fill>1&lt;/fill>&lt;outline>1&lt;/outline>&lt;LineStyle>&lt;color>FFFF0000&lt;/color>&lt;width>2&lt;/width>&lt;/LineStyle>&lt;/PolyStyle>&lt;/Style>&lt;Geometry>POLYGON((15.657609288059746 62.556809333521528,15.459855381809746 62.462991521860886,15.602677647434746 62.4121561723654,15.844376866184746 62.435042773441268,15.954240147434746 62.516275696515116,15.860856358372246 62.5795852679328,15.657609288059746 62.556809333521528))&lt;/Geometry>&lt;/StyledGeometry>&lt;/StyledGeometrys>" id="ctl00_m_g_554d7149_4d9f_4a96_a3f4_aa5936baef7b_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_TextField" title="plats" class="ms-long" />
        <input name="ctl00$m$g_554d7149_4d9f_4a96_a3f4_aa5936baef7b$ctl00$ctl04$ctl01$ctl00$ctl00$ctl04$ctl00$ctl00$lSCAStatus" type="text" value="Avtal" id="ctl00_m_g_554d7149_4d9f_4a96_a3f4_aa5936baef7b_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_lSCAStatus" />
        <input name="ctl00$m$g_31e3211d_b8a7_49e5_86eb_775bbf1075ea$ctl00$ctl04$ctl01$ctl00$ctl00$ctl04$ctl00$ctl00$lSMILSite" type="text" value="http://localhost" id="ctl00_m_g_31e3211d_b8a7_49e5_86eb_775bbf1075ea_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_lSMILSite" />
    </span>
    <div id="silverlightControlHost">
  <object data="data:application/x-silverlight,2" type="application/x-silverlight-2" width="800px" height="800px">
    <param name="source" value="ClientBin/SMIL.Client.Coordinate.xap"/>
    <param name="onerror" value="onSilverlightError" />
    <param name="background" value="azure" />
    <param name="minRuntimeVersion" value="2.0.31005.0" />
    <param name="autoUpgrade" value="true" />
    <param name="initParams" value="SMIL.BingMap.CredentialsKey=AuQ2kqDNtkNtNd0FU1nPWQFPBo14nJiZ3VkaukVwnzB9DGy6lCrfSSX6cHAEjxHE" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
    </a>
  </object>
</div>--%>
	    
	    
    </form>
</body>
</html>
